﻿<%@ Page Title="" Language="C#" MasterPageFile="~/IntecnologiaMasterPage.master" AutoEventWireup="true" Inherits="Events" Codebehind="Events.aspx.cs" %>

<%--HEADER CONTENT--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<%--WINDOW HEAD CONTENT--%>
<asp:Content ID="headboxcontent" ContentPlaceHolderID="headbox" runat="server">
    <%--HEAD NAME--%>
    <div class="flt windowheadtext">
        INTECNOLOGIA
    </div>
    <%--SPACE--%>
    <br /><br />    
    <%--PATH TEXT--%>
    <% if (Request.Browser.Browser.ToString().Contains("IE") && Request.Browser.Version != "8.0")%>
    <% { %>
        <div style="margin:20px 0px 0px 105px;padding-top:5px">
            Eventos
        </div>
    <% }
       else
       { %>
       
        <div style="margin:10px 0px 0px 105px;padding:0">
            Eventos
        </div>
    <% } %> 
</asp:Content>

<%--CONTENT--%>
<asp:Content ID="Content2" ContentPlaceHolderID="Center" Runat="Server">
   
  
    <img src="images/rp_blt.gif" alt=" " width="11" height="11" class="rp_blt" />
    <a href="SpecialEvents.aspx" style="color:#F61125; margin:13px 0px 0px 5px; font-weight:bold; font-size:1.2em;">Ver Eventos Especiales</a>
      
    <%--Events DATALIST--%>
    <asp:DataList ID="dlEvents" runat="server" 
             RepeatColumns="1" DataKeyField="EventID" RepeatDirection="Horizontal" Width="100%">
    

        <%--DATALIST ITEM TEMPLATE--%>
        <ItemTemplate>
        
            <%--CONTENT SPAN--%>
            <span class="flt windowcontentspan">
            

                <%--Upside interior rounding edges--%>
	            <span class="fltr rp_r1"></span>
	            <span class="flt rp_l1"></span>
	    
	            <%--CONTENT HEADER--%>
	            <span class="flt contentheader" style="float: right;">
	                <%# GetSpanishDay(((BusinessLayer.Model.Entities.Event)Container.DataItem).Date.DayOfWeek.ToString()) %>
	                ,
	                <%# ((BusinessLayer.Model.Entities.Event)Container.DataItem).Date.Day %>
	                 de
	                <%# GetMonthName(((BusinessLayer.Model.Entities.Event)Container.DataItem).Date.Month)%>
	                <br />
	                
	                    
	            </span>	
	            <span class="contentheader"><%# ((BusinessLayer.Model.Entities.Event)Container.DataItem).Name %></span>
        
	            <%--CONTENT INNER SPAN--%>
	            <span class="flt contentinnerspan">
	                
	                <%--CONTENT TEXT--%>
		            <span class="flt contenttext">
	                    <%# ((BusinessLayer.Model.Entities.Event)Container.DataItem).Description %>
	                    <br />
	                    <br />
	                    <span style="font-weight:bold;">Hora:</span>   <%# ((BusinessLayer.Model.Entities.Event)Container.DataItem).Date.TimeOfDay %>
	                    <br />
	                    <span style="font-weight:bold;">Lugar:</span>  <%# ((BusinessLayer.Model.Entities.Event)Container.DataItem).Place %>
	                </span>
	                
	            </span>   
                <%--Downside interior rounding edges--%>
	            <span class="flt downsideinnneredge">
		            <span class="fltr rp_r2"></span>
		            <span class="flt rp_l2"></span>
	            </span>
	            
	        </span>     
        
        </ItemTemplate>
    
    </asp:DataList>

</asp:Content>